package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("recommend_user")
public class RecommendUser implements Serializable {

    private static final long serialVersionUID = 362412820763981265L;
    @Id
    private ObjectId id; //主键id
    private String date; //日期
    @Indexed
    private Double score; //推荐得分
    private Long toUserId; //推荐给谁(我)
    @Indexed
    private Long userId; //被推荐的人(小姐姐)


}
